package com._101aiot.test.web.exception;

import com._101aiot.web.exception.BusinessExceptionAssert;
import lombok.AllArgsConstructor;
import lombok.Getter;


/**
 * 在业务模块编写此类，然后基础 BusinessExceptionAssert
 * 业务异常枚举
 */
@Getter
@AllArgsConstructor
public enum ResponseEnum implements BusinessExceptionAssert {

    /**
     * Bad licence type
     */
    BAD_LICENCE_TYPE("7001", "Bad licence type."),
    /**
     * Licence not found
     */
    LICENCE_NOT_FOUND("7002", "Licence not found."),

    OBJ_IS_NULL("7003", "对象为空！")
    ;

    /**
     * 返回码
     */
    private final String code;

    /**
     * 返回消息
     */
    private final String message;

    @Override
    public boolean getSuccess() {

        return false;
    }

}